package org.jeecg.modules.scm.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @Description: scm_cus_visit
 * @Author: jeecg-boot
 * @Date:   2021-11-29
 * @Version: V1.0
 */
@Data
@TableName("scm_cus_visit")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="客户走访对象", description="客户走访")
public class ScmCusVisit implements Serializable {
    private static final long serialVersionUID = 1L;

	/**客户走访表ID*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "客户走访表ID")
    private String id;
	/**客户名称*/
	@Excel(name = "客户名称", width = 15)
    @ApiModelProperty(value = "客户名称")
    private String cusName;
	/**证件类型*/
	@Excel(name = "证件类型", width = 15)
    @ApiModelProperty(value = "证件类型")
    @Dict(dicCode = "certificate_type")
    private String certificateType;
	/**证件号码*/
	@Excel(name = "证件号码", width = 15)
    @ApiModelProperty(value = "证件号码")
    private String certificateNo;
	/**所属行业*/
	@Excel(name = "所属行业", width = 15)
    @ApiModelProperty(value = "所属行业")
    @Dict(dictTable = "scm_industry_type",dicText = "industry_name",dicCode = "id")
    private String industry;
	/**客户所在地*/
	@Excel(name = "客户所在地", width = 15)
    @ApiModelProperty(value = "客户所在地")
    private String location;
	/**走访开始日*/
	@Excel(name = "走访开始日", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "走访开始日")
    private Date startTime;
	/**走访结束日*/
	@Excel(name = "走访结束日", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "走访结束日")
    private Date endTime;
	/**走访状态*/
	@Excel(name = "走访状态", width = 15)
    @ApiModelProperty(value = "走访状态")
    @Dict(dicCode = "visit_status")
    private Integer status;
	/**客户经理*/
	@Excel(name = "客户经理", width = 15)
    @ApiModelProperty(value = "客户经理")
    private String cusManage;
	/**备注*/
	@Excel(name = "备注", width = 15)
    @ApiModelProperty(value = "备注")
    private String remark;
    /**附件*/
    @Excel(name = "附件", width = 15)
    @ApiModelProperty(value = "附件")
    private String accessory;
	/**最后修改用户*/
    @ApiModelProperty(value = "最后修改用户")
    private String updateBy;
	/**最后修改时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "最后修改时间")
    private Date updateTime;
	/**建立用户*/
    @ApiModelProperty(value = "建立用户")
    private String createBy;
	/**建立时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "建立时间")
    private Date createTime;
}
